import Vue from 'vue'
import Router from 'vue-router'
import Layout from '@/page/layout'
import Centre from '@/page/centre'
import Center from '@/page/center'
import Goods from '@/page/goods'
import User from '@/page/user'
import Category from '@/page/category'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Layout',
      component: Layout,
      children: [{
        path: '/',
        name: 'Center',
        component: Center
      }, 
      {
        path: 'goods',
        name: 'Goods',
        component: Goods
      }, 
      {
        path: 'category',
        name: 'Category',
        component: Category
      }, 
      {
        path: 'user',
        name: 'User',
        component: User
      }
      
    
    ]
    },
  ]
})
